<?php

namespace app\common\validate;

use think\Validate;

class Ems extends Validate
{
    protected $rule = [
        'event' => ['require'],
        'email' => ['require'],
        'code' => ['require']

    ];
// event表示从哪里来的邮箱验证，如TP云课堂邮箱认证
    protected $message = [
        'event.require' => '校验事件必填',
        'email.require' => '邮箱必填',
        'code.require' => '验证码必填',
    ];
}